<?php
include 'db.php';
include 'cart.php';
include 'inc/header.php';
?>
<!DOCTYPE HTML>
<html>
    <head>
    <meta charset=utf-8>
    <title>LEDLAMPS</title>
   
    <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
    <script src="js/modernizr-1.7.min.js"></script><!-- this is the javascript allowing html5 to run in older browsers -->

     
    <link rel="stylesheet" type="text/css" href="css/reset.css" media="screen" title="html5doctor.com Reset Stylesheet" />
    
    <link rel="stylesheet" href="css/default.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" media="screen" />
    
    <!-- in the CSS3 stylesheet you will find examples of some great new features CSS has to offer -->
    <link rel="stylesheet" type="text/css" href="css/css3.css" media="screen" />
    
    <!-- general stylesheet contains some default styles, you do not need this, but it helps you keep a uniform style -->
    <link rel="stylesheet" type="text/css" href="css/general.css" media="screen" />
    
    <!-- grid's will help you keep your website appealing to your users, view 52framework.com website for documentation -->
    <link rel="stylesheet" type="text/css" href="css/grid.css" media="screen" />
  
    
    
    </head>

<body>


<?php get_header('products','public'); ?>

<section class="shopcart-wrap">
	<div class="cartStatus"><a href="cart-canvas.php" class="cartView">show cart</a><p><?php cartStatus(); ?></p></div>
	<div class="clear"></div>
    
    
<script type="text/javascript">
	function CallDisCat(obj){
		window.location = 'products.php?filter='+obj.value;
	}
</script>

	

<div align="right" style="padding:10px;">
	<?php
		if(!@$_GET['view'] || @$_GET['view']=='u'){
	?>
	<div align="left" style="float:left;">
    	<select name="category_" onChange="CallDisCat(this)">
    	<option value="">All</option>
        	<?php
				$getcats = mysql_query("SELECT * FROM features ORDER BY name");
				while($catrow = mysql_fetch_array($getcats)){
		?>
        		<option value="<?php echo $catrow['id']; ?>" <?php if(@$_GET['filter'] == $catrow['id']) echo "selected"; ?>><?php echo $catrow['name'] ?></option>
        <?php		
				}
			?>
    	</select>
    </div>

    <?php
		}
	?>

    <div class="clear"></div>
</div>
<section class="row">
 	<div class="rounded j-products box_shadow box-align-center">
    
    		
            
         	<?php
				include('parent.php');
			  ?>
  	</div>  
</section>
 
<footer class="row">

	<div class="col_16 col">all rights reserved &copy; <a href="http://www.enavu.com">enavu network</a> | 52framework the framework from the future</div>

</footer>
 
</body>    <!-- start sidebarbox: Section 2 -->

<script src="js/bootstrap.min.js"></script>
    <script type="text/javascript">
		//for filters
		$(document).ready(function() {
			//for tooltip hovers
			$('.updateLink').tooltip({placement: 'right'});
			$('.edit-customer').tooltip();
			$('.edit-salesman').tooltip();
			$('.view-invoice').tooltip();		
		});
    </script>
</html>
